Fix X GC leak in GTK and raw (no toolkit) X ports.
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 2 Aug 2013 13:22:23 +0000 (17:22 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 2 Aug 2013 13:22:23 +0000 (17:22 +0400)
commit444454ac3b162984db3b13d26188c8119d8430f1
tree41effce57829e5d69f0ccb87c94d18c83562dcc9
parent750845390298b95b2ebbe4c532e8736eabf565ec
Fix X GC leak in GTK and raw (no toolkit) X ports.
* xterm.c (x_free_frame_resources): If white and black relief
GCs are allocated, always free them here.
* xfns.c (x_make_gc): Omit redundant initialization.
* widget.c (create_frame_gcs): Remove the leftover.
(EmacsFrameDestroy): Do nothing because all GCs are now freed
in x_free_frame_resources.
src/ChangeLog
src/widget.c
src/xfns.c
src/xterm.c